﻿using Abp.WebApi.Controllers;
using App.WebApi.ViewModels;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Http.Results;

namespace App.WebApi.Controllers
{
    [Authorize]
    public class AppApiControllerBase : AbpApiController
    {
        protected new JsonResult<T> Json<T>(T content)
        {
            return Json<T>(content, new JsonSerializerSettings()
            {
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
                DateFormatString = "yyyy-MM-dd HH:mm"
            });
        }
    }
}
